/*
 * Copyright (c) 2010-2011 NOO. All Rights Reserved.
 * [Id:NoFilterColumn.java  2011-11-06 下午2:23 poplar.yfyang ]
 */
package org.mumu.pawn.fm.annotation;

import org.richfaces.component.SortOrder;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * <p>
 * 在数据模型中需要进行排序的字段标注.
 * </p>
 *
 * @author poplar.yfyang
 * @version 1.0 2011-11-06 下午2:23
 * @since JDK 1.5
 */
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface OrderByColumn {
    /**
     * 排序标记，默认不排序
     *
     * @return 排序标记
     */
    public SortOrder order() default SortOrder.unsorted;
}
